package com.wondertek.service.dto.sys.req;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author xqs
 */
@Data
public class SysDictAddReq {

    /**
     * 父级id
     */
    @Schema(name = "parentId",description = "父级id")
    private String parentId;

    /**
     * 字典名称
     */
    @NotBlank(message = "dict.name.not.null")
    @Schema(name = "dictName",description = "字典名称")
    @Length(min = 1, max = 30, message = "name.length")
    private String dictName;

    /**
     * 字典编码
     */
    @Schema(name = "dictCode",description = "字典编码", hidden = true)
    @JsonIgnore
    private String dictCode;

    /**
     * 字典数据值
     */
    @Schema(name = "dictValue",description = "字典数据值")
    private String dictValue;
}
